package com.htiiot.status;

import com.htiiot.status.cmd.Cmd;
import com.htiiot.status.kafka.Listener;
import de.codecentric.boot.admin.config.EnableAdminServer;
import org.apache.logging.log4j.LogManager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 状态数据写入HDFS
 *
 * @author 李延念
 * @create 2018-09-26 9:44
 **/
@SpringBootApplication
@EnableScheduling
public class StatusMain{
    private static org.apache.logging.log4j.Logger logger = LogManager.getLogger(StatusMain.class);

    public static void main(String[] args) {
        logger.info( "init start " );
        System.setProperty("HADOOP_USER_NAME", "hdfs");
        Cmd.parserCmd(args);
        SpringApplication.run(StatusMain.class, args);
    }
}